﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace XTeam.Core.Mvc
{
    public class BasicController : Controller
    {
        protected virtual object CreatePager(string HrefFormat, int pageIndex = 1, int pageSize = 15, int TotalRows = 0, int pageCount = 0)
        {
            return new
            {
                PageIndex = pageIndex,
                PageSize = pageSize,
                PageCount = pageCount,
                TotalRows = TotalRows,
                HrefFormat = Server.UrlDecode(HrefFormat)
            };
        }
    }
}
